package com.tjx.constant;

public interface ResultCode {
    int SUCCESS_CODE = 200;
    int FAIL_CODE = 500;
    // 业务错误码
    int ERROR_PARAM_INVALID = 40001;
    int ERROR_PERMISSION_DENIED = 40002;
    int ERROR_DATA_NOT_FOUND = 40003;


    // 缓存过期时间
    long CACHE_EXPIRE_5_MIN = 300;
    long CACHE_EXPIRE_1_HOUR = 3600;
    long CACHE_EXPIRE_1_DAY = 86400;

    // 分页默认值
    int DEFAULT_PAGE_SIZE = 10;
    int DEFAULT_PAGE_NUM = 1;
}